<?php

	$url = "http://www.youban.com/html5/index.php";

	$post_data  = "p=10&rand=".time();
	$ch = curl_init();    
	curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_URL, $url);    
    curl_setopt($ch, CURLOPT_HEADER, 0);    
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);    
    curl_setopt($ch, CURLOPT_COOKIE, $cookie);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
    $content = curl_exec($ch);    
    curl_close($ch);
	print_r($content);exit;

	/*

	 $str_cookie = '';
    if (isset($_COOKIE['uid'])) //域A下的cookie
   {
           $str_cookie = "eben_uid={$_COOKIE['uid']};eben_nickname={$_COOKIE['nickname']}";
    }
  
     $commentserver = http://B.com/comment/comment';  //B域名下的b.php

     $post_data  = "goodid={$goodid}&content={$content}&user={$user}&password={$pwd}";
  
     $ch   = curl_init();

     
     curl_setopt($ch, CURLOPT_NOBODY, false); //设定是否输出页面内容
     
     $headers = curl_exec($ch);  
     echo $headers;
	 */

?>